<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/common.css"/>
<link rel="stylesheet" type="text/css" href="css/dl.css"/>
<link rel="stylesheet" type="text/css" href="css/manage.css"/>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.pagination.js"></script>
<script src="js/jquery.lightbox_me.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="js/login.js"></script>		
<script type="text/javascript">
$(document).ready(function() {
	$("#Pagination").pagination("15");
});


function updateinfo(){

          $.ajax({
                url : 'sourseinfo_intsourseinfo_',
                data : {
                    assetsMeterID : rowID
                },
                dataType : 'json',
                type : "post",
                success : function(r, textStatus) {
                    if (r.msg == '') {
                        //删除台区管理信息
                        parent.parent.$.messager.confirm(M0011, M0014, function(b) {
                            if (b) {
                                $.ajax({
                                    url : 'assetMeterJ_delMeter',
                                    data : {
                                        assetsMeterID : rowID
                                    },
                                    dataType : 'json',
                                    type : "post",
                                    success : function(r, textStatus) {
                                        if (r && r.success) {
                                            parent.parent.$.messager.alert(M0011, r.msg);
                                            $('#datainfo').datagrid('load');
                                        } else {
                                            $.messager.alert('错误', r.msg, 'error');///TODU 删除失败
                                        }
                                    }
                                });
                            }
                        });
                    } else {
                        //输出关联性校验错误信息
                        parent.parent.$.messager.alert(M0011, r.msg);
                    }
                }
            });
        


        }
</script>
<title>资源管理</title>
</head>
<body>
<!--head start-->
<div class="head system_head">
   <div class="head-topbg">
    <div class="head-top">
     <div class="head-logo">
        <img src="images/logo.png" />
     </div> 
     <div class="head-search">
         <form action="###" method="post">
            <input type="text" class="text"/> 
            <input type="submit" class="submit" value=""/>
         </form>
     </div>
     <div class="head-login">
        <ul>
           <li><a href="${pageContext.request.contextPath }/queryAllItem">${loginUser.username}</a></li>
           <li>
           <s:if test="#session.loginUser eq null">
           <a href="login.jsp" class="green" id="cmd_login">登录</a>
           </s:if>
           <a href="${pageContext.request.contextPath }/logout">(退出)</a>
           </li>
           <li><a href="regist01.jsp">注册</a></li>
        </ul>             
     </div>
     <div class="head-right">
        <a href="###" class="setup">
           <img src="images/Cogwheel.png" />
        </a>
        <div class="email">
           <a href="###">
              <img src="images/email-icon.png" />
           </a>
           <span>12</span>
        </div>
     </div>
     </div>
   </div>
   <div class="nav" id="nav">
     <ul>
       <li><a href="index.jsp" target="_top">首页</a></li>
       <li><a href="ersp_res_stand.html" target="_top">基础设施预约</a></li>
       <li id="ersp_res_human"><a href="${pageContext.request.contextPath}/qryAllSource_1" target="_top">人力资源预约</a></li>
       <li><a href="ersp_res_course.html" target="_top">课程资源预约</a></li>
       <li><a href="ersp_res_online.html" target="_top">在线资源</a></li>
       <li><a href="ersp_achievement.html" target="_top">成果展现</a></li>
       <li><a href="ersp_res_cust.html" target="_top">定制化资源服务</a></li>
       <li class="li1"><a href="services.jsp" target="_top">综合服务系统</a></li>
     </ul> 
   </div>
</div>
<!--head end-->
<div class="my-content">
   <div id="firstpane" class="menu_list">
       <ul>
          <li>我的资源
               <ul>
                <li>资源上架
                   <ul>
                     <li id="jcss"><a href="jcss.html#jcss">基础设施</a></li>
                     <li id="rlzy"><a href="rlzy.jsp">人力资源</a></li>
                     <li id="class_sourse"><a href="class_sourse.html#class_sourse">课程资源</a></li>
                     <li id="online_source"><a href="online_source.html#online_source">在线资源</a></li>
                     <li id="dzhzy"><a href="dzhzy.html#dzhzy">定制化</a></li>                     
                     <li id="Shel_for_approval"><a href="Shel_for_approval.html#Shel_for_approval">上架审批</a></li>
                  </ul>
                </li>
                <li id="manage"><a href="${pageContext.request.contextPath }/qryAllSource_2">资源管理</a></li>
                <li id="approval"><a href="${pageContext.request.contextPath }/queryItemByStatus?status=1">预约审批</a></li> 
             </ul>
          </li>
           <li>我的机构
             <ul>
                <li id="jgxxgl"><a href="jgxxgl.html#jgxxgl">机构信息管理</a></li> 
                <li id="jgxxgl1"><a href="jgxxgl1.html#jgxxgl1">机构信息管理</a></li> 
                <li id="institutional_user"><a href="institutional_user.html#institutional_user">机构用户审核</a></li>             
             </ul>
          </li>
          <li>我的收藏
             <ul>
                <li id="zysc"><a href="zysc.html#zysc">资源收藏</a></li> 
                <li id="zysc"><a href="zysc.html#zysc">机构收藏</a></li> 
             </ul>
          </li>
          <li>成果展现
             <ul>
                <li id="achievements"><a href="achievements.html#achievements">成果管理</a></li> 
             </ul>
          </li>
          <li>评价管理
             <ul>
                <li id="rate"><a href="rate.html#rate">来自预约者的评价</a></li> 
                <li id="provider"><a href="provider.html#provider">来自提供者的评价</a></li> 
                <li id="other"><a href="other.html#other">给他人的评价</a></li>  
             </ul>
          </li>
          <li id="myfoot"><a href="myfoot.html#myfoot">我的足迹</a></li> 
       </ul>            
   </div>
   <div class="coright"> 
      <div class="coright_list">
         <div class="coright_listc">
            <s:iterator value="sourceList" var="source">
            <div class="coright_listcl">
               <img src="${source.photo}" width="200" height="150"/>
            </div>
            <div class="coright_listcr">
               <div class="coright_listcrt">
                <dl class="coright_dltop">
                   <dt class="jc"><span class="jcname">教师姓名:</span><span class="jccon">${source.teacherNm}</span></dt>
                   <dd class="jc"><span class="jcname">擅长领域:</span><span class="jccon">${source.speciality}</span></dd>
                   <dd class="zyj"><span class="jcname">个人简介:</span><span class="jccon">${source.introduction}</span></dd>
                </dl>
                <div class="insert"><a href='${pageContext.request.contextPath}/delSourById?sourceId=${source.sourceId}'>删除</a><a href='javascript:updateinfo();'>修改</a></div>
                <div class="clear"></div>
                </div>
            </div>
            </s:iterator>
         </div>
        <div class="clear"></div>
      </div> 
      
      </div>
<div class="clear"></div>
<div class="pages">
        <s:iterator value="pageBean">    
        <tr>    
         <td colspan="6" align="center" bgcolor="#5BA8DE">    
        	    共<s:property value="allRow"/>条记录        
     		    共<s:property value="totalPage"/>页        
        	 当前第<s:property value="currentPage"/>页<br>    
        
         <s:if test="%{currentPage == 1}">    
          	 第一页  上一页    
         </s:if>    
         <!-- currentPage为当前页 -->    
         <s:else>    
           <a href="${pageContext.request.contextPath}/${methodName}?page=1">第一页</a>    
           <a href="${pageContext.request.contextPath}/${methodName}?page=<s:property value="%{currentPage-1}"/>">上一页</a>    
         </s:else>    
        
         <s:if test="%{currentPage != totalPage}">    
         <a href="${pageContext.request.contextPath}/${methodName}?page=<s:property value="%{currentPage+1}"/>">下一页</a>    
         <a href="${pageContext.request.contextPath}/${methodName}?page=<s:property value="totalPage"/>">最后一页</a>    
         </s:if>    
        
         <s:else>    
         	下一页  最后一页    
         </s:else>    
         </td>    
        </tr>    
</s:iterator>
</div>   
<script type="text/javascript" src="js/left.js"></script>
<script type="text/javascript" src="js/nav.js"></script>
<div id="sign_up">
     <h3 id="see_id" class="sprited" >&nbsp;</h3>
     <span>用户登录</span>
     <div id="sign_up_form">
          <input class="sprited" placeholder="请输入手机号码或邮箱或用户名"/>
          <input class="sprited" placeholder="请输入密码"/><br />
          <div class="jzma">
               <input type="checkbox" />    
               <span style="color:gray;" style="font-size:14px;">记住用户名</span>                  
                <a href="###" class="wjma">忘记密码？</a>
           </div>
           <a href="###" class="button">立即登录</a><br />
           <div class="box1">
              <span class="con">还不是我们的用户？</span>
              <a href="###" class="zc">立即注册</a>
           </div> 
        </div>                  
</div>
</body>

</html>
